import request from '@/utils/request'

// 查询sql增强脚本列表
export function listOnlCgformEnhanceSql(query) {
  return request({
    url: '/sql/onlCgformEnhanceSql/list',
    method: 'get',
    params: query
  })
}

// 查询sql增强脚本详细
export function getOnlCgformEnhanceSql(id) {
  return request({
    url: '/sql/onlCgformEnhanceSql/' + id,
    method: 'get'
  })
}

// 保存sql增强脚本
export function saveOnlCgformEnhanceSql(data) {
  return request({
    url: '/sql/onlCgformEnhanceSql/save',
    method: 'post',
    data: data
  })
}

// 删除sql增强脚本
export function delOnlCgformEnhanceSql(id) {
  return request({
    url: '/sql/onlCgformEnhanceSql/' + id,
    method: 'delete'
  })
}

// 导出sql增强脚本
export function exportOnlCgformEnhanceSql(query) {
  return request({
    url: '/sql/onlCgformEnhanceSql/export',
    method: 'get',
    params: query
  })
}

// 查询sql增强脚本详细
export function getlistByFormId(id) {
  return request({
    url: '/sql/onlCgformEnhanceSql/getListByFormId/' + id,
    method: 'get'
  })
}

// 验证唯一
export function findAddStartList(query) {
  return request({
    url: '/sql/onlCgformEnhanceSql/findAddStartList',
    method: 'get',
    params: query
  })
}
